import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: HP
 * Date: 2023 -04 -17
 * Time: 23:28
 */
public class Staff extends Employee{
    private String title;

    public Staff(String name, String addr, String telp, String emil, String dept, String salary, Date hire, String title) {
        super(name, addr, telp, emil, dept, salary, hire);
        this.title = title;
    }

    @Override
    public String toString() {
        return "Staff{" +
                "title=" + title +" "+super.toString()+
                '}';
    }
}
